<%@page contentType="text/html;charset=UTF-8"%>
<%@ page import="whf.shop.utils.ShopUtils" %>
<%@taglib uri="/WEB-INF/tlds/framework.tld" prefix="framework"%>
<html>
<head>
<script src="<%= request.getContextPath() %>/scripts/alai/alai_menu_xp.js"></script>
<script>
	function nodeClick(name, id, deepth){
		alert(name+":"+id+":"+deepth);
	}
</script>
<jsp:include page="/common/inc/select.jsp" />
<SCRIPT>
function addToCart(pid){
	form1.pid.value=pid;
	form1.submit();
}
function currency_changed(){
	window.location="<%= request.getContextPath() %>/shop/Currency.do?webMethod=resetCurrency&currencyId="+form1.selectCurrency.value;
}
</SCRIPT>
</head>
<body>
<framework:menu boClassName="whf.shop.entity.ProductCategory" nodeOnclickFunction="nodeClick" 
	menuBarProperties="0,0"/>
<br>
<br>
<form name="form1" action="<%= request.getContextPath() %>/shop/Order.do" method="post">
	<input type='hidden' name='webMethod' value='addProducts'>
	<input type='hidden' name='pid' value=''>
	<table width="100%" align='center' border='0' cellpadding='0' cellspacing='0'>
		<tr>
			<td width="10%"></td>
			<td width="25%"><jsp:include page="/shop/inc/member.jsp" /></td>
			<td width="30%"></td>
			<td width="25%" align='right'>
			货币类型：<framework:select name="selectCurrency" boClassName="whf.shop.entity.Currency" selectedProperty="id" selectedValues="<%= new Long(ShopUtils.getCurrentCurrency(session).getId()) %>" onchange="currency_changed()" />
			&nbsp;&nbsp;<a href="<%= request.getContextPath() %>/shop/Order.do?webMethod=viewMyCart"><b><%= ShopUtils.getCurrentOrder(session).getProductCount() %></b></a>
			</td>
			<td width="10%"></td>
		</tr>
		<tr>
			<td></td>
			<td colspan='3'>
			<framework:table pkStyle="checkbox_counter" editable="true" boClassName="whf.shop.entity.Product" 
					displayWrapper="whf.shop.wrapper.ProductDisplayWrapper" 
					pageSize="40" displayColumnCount="5" displayStyle="block">
			</framework:table>
			</td>
			<td></td>
		</tr>
	</table>
</form>
</body>
</html>